The Dynamic Longest Increasing Subsequence Problem

نویسندگان

  • Alex Chen
  • Timothy Chu
  • Nathan Pinsker
چکیده

In this paper, we construct a data structure using a forest of redblack trees to efficiently compute the longest increasing subsequence of a dynamically updated sequence. Our data structure supports a query for the longest increasing subsequence in O(r + logn) worst case time and supports inserts anywhere in the sequence in O (r logn/r) worst case time, where r is the length of the longest increasing subsequence. The data structure can be augmented to support O(logn) worst case time insertions if the insertions are performed at the end of the sequence. The data structure presented can be augmented to support delete operations in the same time as insertions.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Competitive Programming Notebook

3 Dynamic Programming 3 3.1 Longest Common Subsequence (LCS) . . . . . 3 3.2 Longest Increasing Subsequence (LIS) . . . . . 3 3.2.1 O(n) version . . . . . . . . . . . . . . . 3 3.2.2 O(n log n) version . . . . . . . . . . . . 3 3.3 MCM (Matrix Chain Multiplication) . . . . . . 4 3.4 Knapsack . . . . . . . . . . . . . . . . . . . . . 4 3.5 Counting Change . . . . . . . . . . . . . . . . . 4 3.6 ...

متن کامل

A Load Balancing Technique for Some Coarse-Grained Multicomputer Algorithms

The paper presents a load balancing method for some CGM (Coarse-Grained Multicomputer) algorithms. This method can be applied on different dynamic programming problems such as: Longest Increasing Subsequence, Longest Common Subsequence, Longest Repeated Suffix Ending at each point in a word and Detection of Repetitions. We present also experimental results showing that our method is efficient.

متن کامل

Parallel Solutions of the Longest Increasing Subsequence Problem Using Pipelined Optical Bus Systems

In this paper we give parallel solutions to the problem of finding the Longest Increasing Subsequence of a given sequence of n integers. First, we show the existence of a simple dynamic programming solution. Its running time is Θ(n) and its space requirement is Θ(n). Then, we continue by showing that it is possible to develop two parallel solutions based on optical bus system of n processors, o...

متن کامل

Finding Longest Common Increasing Subsequence for Two Different Scenarios of Non-random Input Sequences

By reviewing Longest Increasing Subsequence (LIS) and Longest Common Subsequence (LCS), the Longest Common Increasing Subsequence (LCIS) problem is explored for two non-random input cases in details. Specifically, we designed two algorithms, one solving the input sequence scenario with the case that one sequence is ordered and duplicate elements are allowed in each of sequences, and the second ...

متن کامل

Finding a Longest Increasing Subsequence from the Paths in a Complete Bipartite Graph∗

Let S = s1, s2, . . . , sn be an integer sequence. The longest increasing subsequence problem is to find an increasing subsequence of S with the longest length. By regarding S as a weight sequence of the vertices in a path, we can redefine the longest increasing subsequence problem on graphs as follows. Let G = (V,E) be a graph in which every vertex v ∈ V has a weight w(v). A longest increasing...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2013